using System;
using System.Text;

namespace LegoBotPrimaAbstractions.Extensions
{
    public static class DateTime_Ext
    {
        public static string AsInitCall(this DateTime date)
        {
            var sb = new StringBuilder();
            sb.Append("new DateTime(");
            sb.Append(date.Year);
            sb.Append(", ");
            sb.Append(date.Month);
            sb.Append(", ");
            sb.Append(date.Day);
            sb.Append(", ");
            sb.Append(date.Hour);
            sb.Append(", ");
            sb.Append(date.Minute);
            sb.Append(", ");
            sb.Append(date.Second);
            sb.Append(", ");
            sb.Append(date.Millisecond);
            sb.Append(")");
            return sb.ToString();
        }
    }
}